package com.cn.asia.test;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import com.cn.mapper.UserMapper;

@SpringBootApplication
@MapperScan("com.cn.mapper")
public class SampleMybatisApplication implements CommandLineRunner {

    @Autowired
    private UserMapper userMapper;

    public static void main(String[] args) {
        SpringApplication.run(SampleMybatisApplication.class, args);
    }

    public void run(String... args) throws Exception {
        //this.userMapper.addUser("CA");
    	
    	
    }

}